﻿@using res = Resource.Admin.Admin;
@{
    var weblang = Resource.Models.Web.Web.Lang;
    var ci = ViewBag.CI as Yqblog.General.GeneralConfigInfo;
    var cateFileName = ci.IfIndependentContentViaLang == 1 ? "Category." + weblang + ".js" : "Category.js";
    var langCount = ci.WebLangList.Length;
    var langPath = Resource.Web.Lang == ci.DefaultLang ? "" : Resource.Web.Lang;
  }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=iso-8859-9" http-equiv="Content-Type">
<title>@(res.Manage)</title>
@{Html.RenderPartial("_JsParas");}
<link href="@Url.Content("~/Content/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/css/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/css/flat-ui-tag.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/css/admin.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript">var defaultLang = '@(ci.DefaultLang)';</script>
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/Web.Lang." + @weblang + ".js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/Category.Lang." + @weblang + ".js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/" + @cateFileName)" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/js/admin.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.placeholder.js")" type="text/javascript"></script>
<!--[if lt IE 9]>
    <script src="@Url.Content("~/Scripts/html5shiv.js")"></script>
<![endif]-->
@RenderSection("Css", false)
</head>
<body>
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar"> 
                    <span class="icon-bar"></span> 
                    <span class="icon-bar"></span> 
                    <span class="icon-bar"></span> 				
                </a>
                <a href="@Url.Action("manage", "account")" class="brand"> @(res.Manage)</a>
                <a href="@Url.Content("~")@langPath" target="_blank" class="brand"><i class="icon-home"></i> </a>
                <div class="nav-collapse">
                    <ul class="nav pull-right">
                        <li>
                            <p class="userinfo">
                                <i class="icon-user"></i>
                                @if ((Session["user"] as Yqblog.Data.blog_users) != null)
                                {
                                    var user = (Session["user"] as Yqblog.Data.blog_users);
                                    <a href="@Html.YqUrl("/account/ucenter")">@user.username</a>
                                }
                                | @Html.ActionLink(res.Logout, "LogOff", "Account")
                            </p>
                        </li>
                    
                        @if (langCount > 1)
                        {

                            <li class="divider-vertical"></li>
                            <li class="dropdown ">
                                <a href="###" class="dropdown-toggle " data-toggle="dropdown">
                                    @Html.GetCurrentLang() <b class="caret"></b>							
                                </a>
                                <ul class="dropdown-menu">
                                    @if (Array.IndexOf(ci.WebLangList, "en-us") > -1)
                                    {
                                        <li> @Html.ActionLink("English", "ChangeLanguage", "Lang", new { language = "en-us" }, null) </li>   
                                    }
                                    @if (Array.IndexOf(ci.WebLangList, "zh-cn") > -1)
                                    {
                                        <li>  @Html.ActionLink("中[简体]", "ChangeLanguage", "Lang", new { language = "zh-cn" }, null) </li>  
                                    }
                                    @if (Array.IndexOf(ci.WebLangList, "zh-tw") > -1)
                                    {
                                        <li> @Html.ActionLink("中[繁体]", "ChangeLanguage", "Lang", new { language = "zh-tw" }, null) </li>
                                    }  
                                </ul>
                            </li>
                        }
                    </ul>
                </div>
            </div>
        </div>
    </div>
<div class="container" id="webcontent">
<div class="row">
<div class="span3">
@{
    var navSelectedItem = string.IsNullOrEmpty(ViewBag.NavSelectedItem) ? string.Empty : " " + (string)ViewBag.NavSelectedItem;
    Html.RenderPartial("_Nav", navSelectedItem);
}
</div>
    <div class="span9">
        @RenderBody()
    </div>
</div>
</div>
    <div id="footer">
        <div class="container">
            <div class="row">
                <div class="span6">
                    © 2013 yqblog build 1.3		
                </div>
                <div class="span6 aright">
                    @res.ThemeBy yq
                </div>
            </div>
        </div>
    </div>
    @RenderSection("Js", false)
    @{Html.RenderPartial("_HelpInfo");}
<div id="ModalHelp">
    @{Html.RenderPartial("_ModalHelpPopUp");}
</div>
</body>
</html>